const menu = {
  state: {
    list: [
      {
        title: '首页',
        icon: 'el-icon-s-home',
        url: '/customer',
      },
      {
        title: '我的报备',
        icon: 'el-icon-s-home',
        url: '/customer/order',
        children: [
          {
            title: '订单报备',
            icon: 'el-icon-s-home',
            url: '/customer/order',
          },
          {
            title: '竞价报备',
            icon: 'el-icon-s-home',
            url: '/customer/bidding',
          },
          {
            title: '商品上架',
            icon: 'el-icon-s-home',
            url: '/customer/goods',
          },
        ],
      },
    ],
  },
  getters: {
    showList: state => {
      return state.list.filter(item => item.show)
    },
  },
}
